Skip to main content

Get Folder Info

AutomatR.DefaultActivities.FileAndFolder.GetFolderInfo

The "Get Folder Info" activity in AutomatR is designed to retrieve detailed properties of a specified folder on the local system. This activity falls under the File and Folder activities category, providing information such as folder size, last modified date, etc.

Properties

NameDescription
Input
Folder PathSpecifies the full path of the folder on the local system for which information is needed. String variables containing the folder path or the result of a folder selection.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Get Folder Info" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1.
Output
Folder InfoOutputs detailed information about the folder as a DirectoryInfo object. The DirectoryInfo object contains properties such as size, last modified date, etc. Variables of type DirectoryInfo to store the folder information.

How to use:

  1. Drag and drop the "Get Folder Info" activity onto the workflow.
  2. Configure the properties by specifying the folder path for which information is needed.
  3. Optionally, configure the delay.
  4. Execute the workflow to retrieve detailed information about the specified folder.

Example: Consider an example where the "Get Folder Info" activity is used to fetch information about a folder named "GetFolderInfo" located in the "D:\Folder\" directory:

Get Folder Info:
Folder Path: "D:\Folder\GetFolderInfo"
Folder Info: folderInfoResult

In this example, the activity fetches information about the "GetFolderInfo" folder, and the result, including details like size, last modified date, etc., is stored in the folderInfoResult variable for further handling in the workflow.